package Managers;

import java.util.ArrayList;
import java.util.Date;

/**
 * Class representing the settings for repeating appointments
 * @author Christian G.
 *
 */
public class Repeat {

	private String repeatUnit;
	private String repeatEvery;
	private ArrayList<String> repeatOn;
	private boolean endsUntil = false;
	private Date repeatUntil;
	
	public Repeat(String repeatUnit, String repeatEvery, ArrayList<String> repeatOn,
			boolean endsUntil, Date repeatUntil) {
		super();
		this.repeatUnit = repeatUnit;
		this.repeatEvery = repeatEvery;
		this.repeatOn = repeatOn;
		this.endsUntil = endsUntil;
		this.repeatUntil = repeatUntil;
	}

	public String getRepeats() {
		return repeatUnit;
	}

	public void setRepeats(String repeats) {
		this.repeatUnit = repeats;
	}

	public String getRepeatEvery() {
		return repeatEvery;
	}

	public void setRepeatEvery(String repeatEvery) {
		this.repeatEvery = repeatEvery;
	}

	public String getRepeatUnit() {
		return repeatUnit;
	}

	public void setRepeatUnit(String repeatUnit) {
		this.repeatUnit = repeatUnit;
	}

	public ArrayList<String> getRepeatOn() {
		return repeatOn;
	}

	public void setRepeatOn(ArrayList<String> repeatOn) {
		this.repeatOn = repeatOn;
	}

	public boolean isEndsUntil() {
		return endsUntil;
	}

	public void setEndsUntil(boolean endsUntil) {
		this.endsUntil = endsUntil;
	}

	public Date getRepeatUntil() {
		return repeatUntil;
	}

	public void setRepeatUntil(Date repeatUntil) {
		this.repeatUntil = repeatUntil;
	}
	
}
